
#ifndef __encoded_value_h__
#define __encoded_value_h__
#include "dex-types.h"

class CDexEncodedValue
{
public:
	ubyte value_type:5;
	ubyte value_arg:3;

	int Size();
	void print();
	int sprint(char * buffer);
};


	
#define VALUE_BYTE 0x00
#define VALUE_SHORT 0x02
#define VALUE_CHAR 0x03
#define VALUE_INT 0x04
#define VALUE_LONG 0x06
#define VALUE_FLOAT 0x10
#define VALUE_DOUBLE 0x11
#define VALUE_STRING 0x17
#define VALUE_TYPE 0x18
#define VALUE_FIELD 0x19
#define VALUE_METHOD 0x1a
#define VALUE_ENUM 0x1b
#define VALUE_ARRAY 0x1c
#define VALUE_ANNOTATION 0x1d
#define VALUE_NULL 0x1e
#define VALUE_BOOLEAN 0x1f


#endif//__encoded_value_h__
	
